﻿using IM.Easy.Core.SeedData;
using IM.Easy.Entity.System;
using IM.Easy.Infrastructure.Constants;

namespace IM.Easy.Api.SeedData
{
    public class ParamsSeedData : MemorySeedData<Params>
    {
        public override List<Params> Read()
        {
            List<Params> list = [];
            list.Add(new Params { Id = 1, IsSystem = true, Key = ParamsConstant.InitPassword, Name = "初始密码", Value = "123456" });
            list.Add(new Params { Id = 2, IsSystem = true, Key = ParamsConstant.AccountLocked, Name = "锁定次数", Value = "3" });
            list.Add(new Params { Id = 3, IsSystem = true, Key = ParamsConstant.ExternalScope, Name = "外部账户默认权限范围", Value = "test" });
            list.Add(new Params { Id = 4, IsSystem = true, Key = ParamsConstant.WebsiteHost, Name = "前端主机地址", Value = "http://localhost:8090" });
            list.Add(new Params { Id = 5, IsSystem = true, Key = ParamsConstant.ServerHost, Name = "服务器主机地址", Value = "http://localhost:8080" });
            list.Add(new Params { Id = 6, IsSystem = true, Key = ParamsConstant.IsDemo, Name = "演示模式", Value = "false" });
            list.Add(new Params { Id = 7, IsSystem = true, Key = ParamsConstant.VCode, Name = "验证码", Value = "off" });
            return list;
        }
    }
}
